Skip to main content

startAngle

Type

property

Summary

Determines the point at which an arc begins.

Syntax

set the startAngle [of <graphic>] to <angleInDegrees>

Description

Use the startAngle property to create an arc shape from an oval graphic, or to cause the Oval paint tool to draw arcs.

By default, ovals display their entire arc from zero to 360°, forming a complete oval. Use the startAngle and arcAngle properties to specify that only a portion of the oval, forming an arc, should be drawn.

The startAngle determines the starting point of the arc. The angleInDegrees zero is at the right edge, 3 o'clock. Increasing the angleInDegrees moves the starting point counter-clockwise around the arc.

The global setting of the arcAngle property controls the appearance of arcs drawn with the paint tools. Once a paint arc is drawn, its appearance cannot be changed by changing the global arcAngle property.

For a graphic oval, the angle is the same as the startAngle. Changing one changes the other.

Examples

set the startAngle of graphic ID 673 to 90 -- top
set the startAngle to the startAngle + 12

command: global

glossary: property, paint tool, control

keyword: integer, point, graphic

property: properties, arcAngle, startAngle

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?